package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import com.ticket.sass.common.entity.tenant.enums.DouyinGoodProductType;
import com.ticket.sass.common.entity.tenant.enums.DouyinGoodsOnlineStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author 张旭勇
 * @date 2024/6/24 10:50
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("douyin_goods")
public class DouyinGoodEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "商品id")
    private String productId;
    
    @ApiModelProperty(value = "商品名")
    private String productName;
    
    @ApiModelProperty(value = "SKU ID")
    private String skuId;
    private DouyinGoodProductType productType;
    private DouyinGoodsOnlineStatus onlineStatus;
    private LocalDateTime soldStartTime;
    private LocalDateTime soldEndTime;
    private boolean isRedeemable;
    private String remark;
    private Long cinemaId;
    private Long tenantId;

    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updatedAt;
    @TableField(select = false)
    @TableLogic(value = "null", delval = "now()")
    public LocalDateTime deletedAt;
}